-- GENERATED SPELL FOR [Deathstalker Adamant] --


function spell0_3849(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(13579,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3849', 4314, 1)
end

function spell1_3849(pUnit, Event) --@Slice and Dice,Self--
pUnit:FullCastSpellOnTarget(6434,pUnit)
pUnit:RegisterEvent('Sorts_3849', 10315, 1)
end

function Sorts_3849(pUnit, Event)
local choix_sorts_3849 = math.random(0, 1)
if choix_sorts_3849 == 0 then
pUnit:RegisterEvent('spell0_3849', 1, 1)
end
if choix_sorts_3849 == 1 then
pUnit:RegisterEvent('spell1_3849', 1, 1)
end
end

function mob3849_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3849', math.random(1500, 3000), 1)
end

function mob3849_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3849_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3849_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3849, 1, 'mob3849_Action')
RegisterUnitEvent(3849, 2, 'mob3849_Leave')
RegisterUnitEvent(3849, 3, 'mob3849_Kill')
RegisterUnitEvent(3849, 4, 'mob3849_Die')
